home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / geowindo / geometry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-28  |  2.6 KB  |  70 lines

  1. //////////////////////////////////////////////////////////////////////
  2. //
  3. // This source code is a part of GeometryManager library from 
  4. // Stonehorse Software and may not be redistributed in any form.
  5. //
  6. // Copyright (C) 1998 Stonehorse Software
  7. // All rights reserved.
  8. //
  9. // GeometryManager.h : Interface to the Geometry Manager
  10. //
  11. //////////////////////////////////////////////////////////////////////
  12.  
  13. #ifndef __GEOMETRYMANAGER_H__
  14. #define __GEOMETRYMANAGER_H__
  15.  
  16. #ifdef _cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. typedef HANDLE    HGEOM;
  21. typedef HANDLE    HGMGROUP;
  22.  
  23. // GeomAdd... dwFlag values
  24. #define GM_GROW_X                0x00000001        // group can grow in width
  25. #define GM_GROW_Y                0x00000002        // group can grow in height
  26. #define GM_GROW                    0x00000003        // group can grow in width and height
  27.  
  28. #define GM_LEFT                    0x00000000        // align this group to the left
  29. #define GM_HCENTER                0x00000010        // horizontally center this group
  30. #define GM_RIGHT                0x00000020        // align this group to the right
  31. #define GM_TOP                    0x00000000        // align this group to the top
  32. #define GM_VCENTER                0x00000040        // vertically center this group
  33. #define GM_BOTTOM                0x00000080        // align this group to the bottom
  34.  
  35. #define GM_HORIZONTAL            0x00000000        // children are arranged horizontally
  36. #define GM_VERTICAL                0x80000000        // children are arranged vertically
  37. #define GM_OVERLAPPED            0x40000000        // children are arranged overlapped
  38.  
  39. // GmStartDefinition dwFlags values
  40. #ifndef _WIN32_WCE
  41. #define GM_NO_TRACK_MIN_SIZE    0x00000001        // do not limit the minimum size of the top level window
  42. #endif //_WIN32_WCE
  43.  
  44. // register this instance of GeometryManager
  45. bool GmRegister(char* pCodeString);
  46.  
  47. // start the definition of the geometry management
  48. HGEOM GmStartDefinition(DWORD dwFlags);
  49.  
  50. // end the definition
  51. bool GmEndDefinition(HGEOM hGeom);
  52.  
  53. // top level groups
  54. HGMGROUP GmAddTopFrameWnd(HGEOM hGeom, HWND hWnd, DWORD dwFlags);
  55. HGMGROUP GmAddTopDialog(HGEOM hGeom, HWND hWnd, DWORD dwFlags);
  56.  
  57. // child groups
  58. HGMGROUP GmAddGroup(HGEOM hGeom, HGMGROUP hParent, DWORD dwFlags, WORD wWeight);
  59. HGMGROUP GmAddWnd(HGEOM hGeom, HGMGROUP hParent, HWND hWnd, DWORD dwFlags, WORD wWeight);
  60. HGMGROUP GmAddGroupBox(HGEOM hGeom, HGMGROUP hParent, HWND hWnd, DWORD dwFlags, WORD wWeight);
  61. HGMGROUP GmAddStaticFrame(HGEOM hGeom, HGMGROUP hParent, HWND hWnd, DWORD dwFlags, WORD wWeight);
  62. HGMGROUP GmAddTabControl(HGEOM hGeom, HGMGROUP hParent, HWND hWnd, DWORD dwFlags, WORD wWeight);
  63. HGMGROUP GmAddChildDialog(HGEOM hGeom, HGMGROUP hParent, HWND hWnd, DWORD dwFlags, WORD wWeight);
  64.  
  65. #ifdef _cplusplus
  66. }
  67. #endif
  68.  
  69. #endif //__GEOMETRYMANAGER_H__
  70.